<!DOCTYPE HTML>
<title>Reference for fieldset overflow</title>
<style>
.fieldset, .legend {
  border: 1em solid;
  background: lime;
}
.fieldset {
  height: 1em;
  margin-top: 2em;
}
.legend {
  height: 1em;
  width: 5em;
  line-height: 1;
  margin-top: -4em;
  margin-left: 1em;
}
</style>
<p>There should be no red.</p>
<div class=fieldset>
</div>
<div class=legend></div>
